<template>
  <div>
    <el-form ref="form" v-model="form" class="accountSearchForm">
      <el-row class="search">
        <el-col :span="8"><el-input v-model="form.account" placeholder="商品编号" size="small" /></el-col>
        <el-col :span="8" style="margin: 0 1%">
          <el-select v-model="form.relo" placeholder="商品类别" size="small">
            <el-option label="区域一" value="shanghai" />
            <el-option label="区域二" value="beijing" />
          </el-select>
        </el-col>
        <el-button type="primary" size="small">查询</el-button>
      </el-row>
      <el-row>
        <el-col :span="8"><el-input v-model="form.userName" placeholder="商品名称" size="small" /></el-col>
        <el-col :span="8" style="margin: 0 1%">
          <el-select v-model="form.freeze" placeholder="商品状态" size="small">
            <el-option label="区域一" value="shanghai" />
            <el-option label="区域二" value="beijing" />
          </el-select>
        </el-col>
        <el-button type="primary" size="small">重置</el-button>
      </el-row>
      <el-row class="search">
        <el-col :span="8"><el-input v-model="form.userName" placeholder="商品售价" size="small" /></el-col>
        <el-col :span="8" style="margin: 0 1%">
          <el-col :span="11">
            <el-date-picker v-model="form.date1" type="date" placeholder="选择起始日期" style="width: 100%;" size="small" />
          </el-col>
          <el-col class="line" :span="2">~</el-col>
          <el-col :span="11">
            <el-date-picker v-model="form.date2" type="date" placeholder="选择结束日期" style="width: 100%;" size="small" />
          </el-col>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
export default {
  name: 'GoodsSearch',
  data() {
    return {
      form: {
        account: '',
        relo: '',
        userName: '',
        freeze: '',
        data1: '',
        date2: ''
      }
    }
  }
}
</script>
<style lang="stylus" scoped>
  .accountSearchForm >>> .el-select
        width 100%
    .accountSearchForm
      margin 0 20px
      .search
        margin 20px 0
        .line
          margin-top 8px
          text-align center
</style>
